<?php
include 'conn_mysql.php';

$id_difang=$_REQUEST['id_difang'];//地方识别符
$_SESSION['id_difang']=$id_difang;



//zhsk分享赠送驴币
if($_SESSION['user_pid']&&!$_REQUEST['user_pid'])
{
	$user_pid=$_SESSION['user_pid'];//推荐人用户ID
}
else
{
	$user_pid=$_REQUEST['user_pid']?$_REQUEST['user_pid']:$_SESSION['user_pid'];//推荐人用户ID
	$_SESSION['user_pid']=$user_pid?$user_pid:'';
}

if($_SESSION['user_pid'])$_SESSION['lv_user_act']=$id_difang;




//查询地方信息
$sql="SELECT * FROM `lvyou_difang_info` WHERE id='".$id_difang."' ";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)){
	$difang_name=$row['difang_name'];
	$difang_type=$row['difang_type'];
	$biaoti=$row['biaoti'];
	$jiage=$row['jiage'];
	$jitian=$row['jitian'];
	$fanduos=$row['fanduos'];
	$picture_lujing=$row['picture_lujing'];
	$danfangcha=$row['danfangcha'];
	$banqi1=$row['banqi1'];
	$banqi2=$row['banqi2'];
	$banqi3=$row['banqi3'];
	$banqi4=$row['banqi4'];
	$banqi5=$row['banqi5'];
	$banqi6=$row['banqi6'];

	if(!empty($row['banqi1'])){$chengren1=$row['chengren1'];$ertong1=$row['ertong1'];} 
    else if(!empty($row['banqi2'])){$chengren1=$row['chengren2'];$ertong1=$row['ertong2'];} 
    else if(!empty($row['banqi3'])) {$chengren1=$row['chengren3'];$ertong1=$row['ertong3'];} 
    else if(!empty($row['banqi4'])) {$chengren1=$row['chengren4'];$ertong1=$row['ertong4'];} 
    else if(!empty($row['banqi5'])) {$chengren1=$row['chengren5'];$ertong1=$row['ertong5'];} 
    else if(!empty($row['banqi6'])) {$chengren1=$row['chengren6'];$ertong1=$row['ertong6'];} 


	
}
//读取轮播的4张图片路径
$i=1;
$sql="SELECT * FROM `picture_xiangmu_up` WHERE difang_id='$id_difang' and type='1' order by id";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)){
	if($i==1){
		$Picture_paht1="Admin/".$row['Picture_paht'];
	}
	if($i==2){
		$Picture_paht2="Admin/".$row['Picture_paht'];
	}
	if($i==3){
		$Picture_paht3="Admin/".$row['Picture_paht'];
	}
	if($i==4){
		$Picture_paht4="Admin/".$row['Picture_paht'];
	}
	$i++;
}

?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script language="javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script language="javascript" src="js/jquery.min182.js"></script>
<script language="javascript" src="js/jquery.form.js"></script>
<script language="javascript" src="js/json.parse.js"></script>
<title>驴行天下</title>
<SCRIPT LANGUAGE="javascript"> 
function adaptive(){
	<?php include 'fenxiang_peizhi.php';?>


	
	var wight=document.body.clientWidth;
	var Height=document.body.clientHeight;
	
	document.getElementById("id_difang_toppicture").style.height = (wight/641)*301;
	document.getElementById("id_difang_toppicture_two").style.height = (wight/641)*301;
	document.getElementById("is_monkey_BGM").style.height = Height;
	
	if(wight>350){
		<?php if($id_difang==1){ ?>
		//document.getElementById("main_div").style.height = 480;
		<?php } ?>
		<?php if($id_difang==2){ ?>
		//document.getElementById("main_div").style.height = 530;
		<?php } ?>
	}
	
	
	<?php if(strlen($id_difang)>0){ ?>
	timer1=setInterval(
	function aa(){
		//获取当前图片的编号
		picture_url=document.getElementById("id_difang_toppicture_two").src;
		
		//将状态换成下一个状态
		if(picture_url=="http://haining.365jinbi.com/lvxingtianxia/<?php echo $Picture_paht1;?>"){
			document.getElementById("id_difang_toppicture_two").src="<?php echo $Picture_paht2;?>"; 
			document.getElementById("id_difang_lunbo1").style.opacity=0.5; 
			document.getElementById("id_difang_lunbo2").style.opacity=1; 
		}
		if(picture_url=="http://haining.365jinbi.com/lvxingtianxia/<?php echo $Picture_paht2;?>"){
			document.getElementById("id_difang_toppicture_two").src="<?php echo $Picture_paht3;?>"; 
			document.getElementById("id_difang_lunbo2").style.opacity=0.5; 
			document.getElementById("id_difang_lunbo3").style.opacity=1; 
		}
		if(picture_url=="http://haining.365jinbi.com/lvxingtianxia/<?php echo $Picture_paht3;?>"){
			document.getElementById("id_difang_toppicture_two").src="<?php echo $Picture_paht4;?>"; 
			document.getElementById("id_difang_lunbo3").style.opacity=0.5; 
			document.getElementById("id_difang_lunbo4").style.opacity=1; 
		}
		if(picture_url=="http://haining.365jinbi.com/lvxingtianxia/<?php echo $Picture_paht4;?>"){
			document.getElementById("id_difang_toppicture_two").src="<?php echo $Picture_paht1;?>"; 
			document.getElementById("id_difang_lunbo4").style.opacity=0.5; 
			document.getElementById("id_difang_lunbo1").style.opacity=1; 
		}
		
	},3000);
	
	setTimeout(function a1(){
		timer2=setInterval(function a2(){
			//获取当前图片的编号
			picture_url1=document.getElementById("id_difang_toppicture").style.backgroundImage;
			//将状态换成下一个状态
			if(picture_url1=="url(http://haining.365jinbi.com/lvxingtianxia/<?php echo $Picture_paht1;?>)"){
				document.getElementById("id_difang_toppicture").style.backgroundImage="url(<?php echo $Picture_paht2;?>)"; 
			}
			if(picture_url1=="url(http://haining.365jinbi.com/lvxingtianxia/<?php echo $Picture_paht2;?>)"){
				document.getElementById("id_difang_toppicture").style.backgroundImage="url(<?php echo $Picture_paht3;?>)"; 
			}
			if(picture_url1=="url(http://haining.365jinbi.com/lvxingtianxia/<?php echo $Picture_paht3;?>)"){
				document.getElementById("id_difang_toppicture").style.backgroundImage="url(<?php echo $Picture_paht4;?>)"; 
			}
			if(picture_url1=="url(http://haining.365jinbi.com/lvxingtianxia/<?php echo $Picture_paht4;?>)"){
				document.getElementById("id_difang_toppicture").style.backgroundImage="url(<?php echo $Picture_paht1;?>)"; 
			}
			
		},3000);
	},1000);
	
	<?php } ?>
	document.getElementById("body").style.display="";
}

function open_lvbisyong(){
	document.getElementById('is_monkey_BGM').style.display="";
}
function is_monkey_close(){
	document.getElementById('is_monkey_BGM').style.display="none";
}
</SCRIPT>
</head>

<body style="margin:0;padding:0;display:none" id="body" onLoad="adaptive()">
	<div style="max-width:640px;height:150px;background-image:url(<?php echo $Picture_paht1;?>);margin-top:-1px;background-color:#ff0000;background-repeat:repeat;background-size:cover;padding:1px 0 0 0px;position:relative;" id="id_difang_toppicture">
		<img style="width:100%;background-color:#000000;background-repeat:repeat;background-size:cover;" src="<?php echo $Picture_paht1;?>" id="id_difang_toppicture_two"></img>
		<div style="max-width:640px;height:20px;position:absolute;bottom:0px;margin-left:40%;">
			<input id="id_difang_lunbo1" style="width:8px;height:8px;border-radius:4px;border:0px;opacity:1;"></input>
			<input id="id_difang_lunbo2" style="width:8px;height:8px;border-radius:4px;border:0px;opacity:0.5;"></input>
			<input id="id_difang_lunbo3" style="width:8px;height:8px;border-radius:4px;border:0px;opacity:0.5;"></input>
			<input id="id_difang_lunbo4" style="width:8px;height:8px;border-radius:4px;border:0px;opacity:0.5;"></input>
		</div>
	</div>
	<div style="max-width:640px;height:auto;border-bottom:1px solid #DCDCDD;;margin-top:7px;overflow:hidden;">
		<a style="float:left;color:#3E3A39;font-family:微软雅黑;font-size:16px;margin-left:3%;"><?php echo $biaoti;?></a>
		<a style="clear:left;float:left;color:#ff0000;font-family:微软雅黑;font-size:16px;margin-left:3%;margin-top:5px;"><?php echo "¥".$chengren1;?></a>
		<a style="float:left;color:#717071;font-family:微软雅黑;font-size:12px;margin-left:1%;margin-top:7px;"><?php echo "/成";?></a>
		<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:16px;margin-left:3%;margin-top:5px;"><?php echo "¥".$ertong1;?></a>
		<a style="float:left;color:#717071;font-family:微软雅黑;font-size:12px;margin-left:1%;margin-top:7px;"><?php echo "/儿童";?></a>
		<a style="clear:left;float:left;color: #ff0000;font-family:微软雅黑;font-size:12px;margin-left:3%;margin-top:5px;">奖励驴币：<?php echo $fanduos;?></a>
		<a style="float:right;color:#ff0000;font-family:微软雅黑;font-size:16px;margin-right:3%;margin-top:0px;" onClick="open_lvbisyong();">驴币使用细则</a>
	</div>
	
	<div style="max-width:640px;height:90px;border-bottom:1px solid #DCDCDD;border-top:1px solid #DCDCDD;margin-top:10px;padding:7px 0 0 0;position:relative;">
		<a style="float:left;color:#3E3A39;font-family:微软雅黑;font-size:16px;margin-left:3%;">出发时间</a>
		<a style="float:right;color:#ff0000;font-family:微软雅黑;font-size:16px;margin-right:3%;text-decoration:none;" href="tel:0573-82716699">驴行热线</a>
		<div style="clear:both;"></div>
		<?php if(!empty( $banqi1)){?>
			<div style="float:left;width:50px;height:20px;border:1px solid #DCDCDD;margin-left:3%;line-height:20px;margin-top:10px;text-align: center">
				<a style="color:#717071;font-family:微软雅黑;font-size:14px;"><?php echo $banqi1;?></a>
			</div>
		<?php } ?>
		<?php if(!empty( $banqi2)){?>
			<div style="float:left;width:50px;height:20px;border:1px solid #DCDCDD;margin-left:3%;line-height:20px;margin-top:10px;text-align: center">
				<a style="color:#717071;font-family:微软雅黑;font-size:14px;"><?php echo $banqi2;?></a>
			</div>
		<?php } ?>
		<?php if(!empty( $banqi3)){?>
			<div style="float:left;width:50px;height:20px;border:1px solid #DCDCDD;margin-left:3%;line-height:20px;margin-top:10px;text-align: center">
				<a style="color:#717071;font-family:微软雅黑;font-size:14px;"><?php echo $banqi3;?></a>
			</div>
		<?php } ?>

		<?php if(!empty( $banqi4)){?>
			<div style="float:left;width:50px;height:20px;border:1px solid #DCDCDD;margin-left:3%;line-height:20px;margin-top:10px;text-align: center">
				<a style="color:#717071;font-family:微软雅黑;font-size:14px;"><?php echo $banqi4;?></a>
			</div>
		<?php } ?>
		<?php if(!empty( $banqi5)){?>
			<div style="float:left;width:50px;height:20px;border:1px solid #DCDCDD;margin-left:3%;line-height:20px;margin-top:10px;text-align: center">
				<a style="color:#717071;font-family:微软雅黑;font-size:14px;"><?php echo $banqi5;?></a>
			</div>
		<?php } ?>
		<?php if(!empty( $banqi6)){?>
			<div style="float:left;width:50px;height:20px;border:1px solid #DCDCDD;margin-left:3%;line-height:20px;margin-top:10px;text-align: center">
				<a style="color:#717071;font-family:微软雅黑;font-size:14px;"><?php echo $banqi6;?></a>
			</div>
		<?php } ?>
	</div>
	
	<?php
	//读取该项目行程特色详情
	$i=1;
	$sql="SELECT * FROM `difang_duanluo` WHERE difang_id='$id_difang' order by youxianji";
	$query = mysql_query($sql);
	if(mysql_num_rows($query)<1){
	}else{	
		while($row = mysql_fetch_array($query)){
			if($i==1){$duanluo1=$row['duanluo'];}
			if($i==2){$duanluo2=$row['duanluo'];}
			if($i==3){$duanluo3=$row['duanluo'];}
			if($i==4){$duanluo4=$row['duanluo'];}
			
			$i=$i+1;
		}
	}
	?>
	<div style="max-width:640px;height:600px;height:auto;border-bottom:1px solid #DCDCDD;margin-top:10px;padding:7px 3% 0 0;text-align:center;border-top:1px solid #DCDCDD;">
		<a style="color:#ff0000;font-family:微软雅黑;font-size:18px;">线路特色</br></a>
		<div style="max-width:640px;height:7px;"></div>
		<a style="text-indent:2em;color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-left:3%;"><?php echo $duanluo1;?></a>
		<a style="text-indent:2em;color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-top:13px;margin-left:3%;"><?php echo $duanluo2;?></a>
		<a style="text-indent:2em;color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-top:13px;margin-left:3%;"><?php echo $duanluo3;?></a>
		<a style="text-indent:2em;color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-top:13px;margin-left:3%;"><?php echo $duanluo4;?></a>
		<div style="max-width:640px;height:7px;"></div>
	</div>
	
	<?php 
	if($difang_type==3){
		//此下为周边游模板
	?>
		<?php
		$sql="select * from xingcheng_duanluo where difang_id='".$id_difang."'";
		$query = mysql_query($sql);
		while($row = mysql_fetch_array($query)){
			$xingcheng_dduanluo1=$row['xingcheng_dduanluo1'];
			$xingcheng_dduanluo2=$row['xingcheng_dduanluo2'];
			$xingcheng_dduanluo3=$row['xingcheng_dduanluo3'];
			$xingcheng_dduanluo4=$row['xingcheng_dduanluo4'];
		}
		
		?>
		<div style="max-width:640px;height:110px;height:auto;border:1px solid #DCDCDD;margin-top:10px;padding:7px 3% 0 0;">
			<a style="color:#ff0000;font-family:微软雅黑;font-size:18px;display:block;text-align:center">活动行程<br></a>
			<a style="text-indent:2em;color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-left:3%;">
				<?php echo $xingcheng_dduanluo1;?>
			</a>
			<a style="text-indent:2em;color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-left:3%;">
				<?php echo $xingcheng_dduanluo2;?>
			</a>
			<a style="text-indent:2em;color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-left:3%;">
				<?php echo $xingcheng_dduanluo3;?>
			</a>
			<a style="text-indent:2em;color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-left:3%;">
				<?php echo $xingcheng_dduanluo4;?>
			</a>
			
			<?php 
			//读取图片及图片描述
			$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id_difang' and type='2' order by id";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$tupianmiaoshu=$row['picture_miaoshu'];
				$picture_path=$row['picture_path'];
			?>
			<img style="width:97%;background-color:#000000;background-repeat:repeat;background-size:cover;margin-left:10px" src="Admin/<?php echo $picture_path;?>"></img>
			<div style="width:97%;height:20px;line-height:20px;text-align:center">
				<a style="color:#595757;font-family:微软雅黑;font-size:14px;margin-left:6%;"><?php echo $tupianmiaoshu;?></a>
			</div>
			
			<?php
			}
			?>
		</div>
		
		
	
	<?php }else{
		//此下为境外游及国内游模板
		//循环读取个天数据，若标题为空，则不显示改天信息
		for($i=1;$i<=15;$i++){
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id_difang' and day='$i'";
			$query = mysql_query($sql);
			if(mysql_num_rows($query)<1){
				$biaoti		  =	   "";
				$tubiao_type1 =    "";
				$nairong1     =    "";
				$tubiao_type2 =    "";
				$nairong2     =    "";
				$tubiao_type3 =    "";
				$nairong3     =    "";
				$tubiao_type4 =    "";
				$nairong4     =    "";
			}else{	
				while($row = mysql_fetch_array($query)){
					$biaoti		  =	   $row['biaoti'];
					$tubiao_type1 =    $row['tubiao_type1'];
					$nairong1     =    $row['nairong1'];
					$tubiao_type2 =    $row['tubiao_type2'];
					$nairong2     =    $row['nairong2'];
					$tubiao_type3 =    $row['tubiao_type3'];
					$nairong3     =    $row['nairong3'];
					$tubiao_type4 =    $row['tubiao_type4'];
					$nairong4     =    $row['nairong4'];
				}
			}
			if(strlen($biaoti)>0){	
	?>
				<div style="clear:left;float:left;width:100%;height:auto;border-top:1px solid #DCDCDD;border-bottom:1px solid #DCDCDD;margin-top:10px;margin-bottom:0px;padding:4px 0 0 0;">
					<div style="float:left;width:85px;height:25px;background-color:#ff0000;margin-top:10px;line-height:25px;">
						<img style="float:left;width:15px;height:15px;margin:5px 0 0 10px" src="picture/smole1.png"></img>
						<a style="float:left;color:#FFFFFF;font-family:微软雅黑;font-size:15px;display:block;margin:0px 0 0 5px;">第<?php echo $i;?>天</a>
					</div>
					<a style="float:left;color:#3E3A39;font-family:微软雅黑;font-size:16px;display:block;margin-top:10px;margin-left:10px;"><?php echo $biaoti;?></a>
					<?php if(strlen($nairong1)>0){?>
						<div style="clear:left;float:left;width:10%;height:auto;">
							<img style="float:left;width:15px;height:15px;margin:18px 0 0 10px" src="picture/smole<?php echo $tubiao_type1;?>.png"></img>
						</div>
						<div style="float:left;width:87%;height:auto;">
							<a style="color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-top:13px;"><?php echo $nairong1;?>
							</a>
						</div>
					<?php } ?>
					<?php if(strlen($nairong2)>0){?>
						<div style="clear:left;float:left;width:10%;height:auto;">
							<img style="float:left;width:15px;height:15px;margin:18px 0 0 10px" src="picture/smole<?php echo $tubiao_type2;?>.png"></img>
						</div>
						<div style="float:left;width:87%;height:auto;">
							<a style="color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-top:13px;"><?php echo $nairong2;?>
							</a>
						</div>
					<?php } ?>
					<?php if(strlen($nairong3)>0){?>
						<div style="clear:left;float:left;width:10%;height:auto;">
							<img style="float:left;width:15px;height:15px;margin:18px 0 0 10px" src="picture/smole<?php echo $tubiao_type3;?>.png"></img>
						</div>
						<div style="float:left;width:87%;height:auto;">
							<a style="color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-top:13px;"><?php echo $nairong3;?>
							</a>
						</div>
					<?php } ?>
					<?php if(strlen($nairong4)>0){?>
						<div style="clear:left;float:left;width:10%;height:auto;">
							<img style="float:left;width:15px;height:15px;margin:18px 0 0 10px" src="picture/smole<?php echo $tubiao_type4;?>.png"></img>
						</div>
						<div style="float:left;width:87%;height:auto;">
							<a style="color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-top:13px;"><?php echo $nairong4;?>
							</a>
						</div>
					<?php } ?>
					<div style="clear:left;float:left;width:100%;height:10px;"></div>
					<?php 
					//读取图片及图片描述
					$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id_difang' and day='$i' and type='1' order by id";
					$query = mysql_query($sql);
					while($row = mysql_fetch_array($query)){
						$tupianmiaoshu=$row['picture_miaoshu'];
						$picture_path=$row['picture_path'];
					?>
					<img style="width:94%;background-color:#000000;background-repeat:repeat;background-size:cover;margin-left:3%" src="Admin/<?php echo $picture_path;?>"></img>
					<div style="width:97%;height:20px;line-height:20px;text-align:center">
						<a style="color:#595757;font-family:微软雅黑;font-size:14px;"><?php echo $tupianmiaoshu;?></a>
					</div>
					
					<?php
					}
					?>
				</div>
	<?php
			}
		}
	}
	?>
	
	<?php 
	$sql="SELECT * FROM `yonghu_xvzhi` WHERE difang_id='$id_difang'";
	$query = mysql_query($sql);
	while($row = mysql_fetch_array($query)){
		$textarea=$row['textarea'];
	}
	?>
	<div style="clear:left;float:left;max-width:640px;height:auto;line-height:24px;margin:10px 0 10px 0;padding:7px 3% 0 0;border-top:1px solid #DCDCDD;border-bottom:1px solid #DCDCDD;">
		<a style="color:#ff0000;font-family:微软雅黑;font-size:18px;display:block;text-align:center">参团须知<br></a>
		<a style="color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;display:block;margin-left:3%;">
			<?php echo $textarea;?>
		</a>
	</div>
	
	<!--增加目的地介绍-->
	<?php
	$sql="SELECT * FROM `mudi_duanluo` WHERE difang_id='$id_difang'";
	$query = mysql_query($sql);
	while($row = mysql_fetch_array($query)){
		$mudi_duanluo1=$row['mudi_duanluo1'];
		$mudi_duanluo2=$row['mudi_duanluo2'];
		$mudi_duanluo3=$row['mudi_duanluo3'];
		$mudi_duanluo4=$row['mudi_duanluo4'];
	}
	?>

	<div style="clear:left;float:left;width:97%;height:auto;margin-top:0px;padding:7px 3% 0 0;border-top:1px solid #DCDCDD;">
		<a style="color:#ff0000;font-family:微软雅黑;font-size:18px;display:block;text-align:center">目的地介绍<br></a>
		<a style="text-indent:2em;color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-left:3%;display:block;margin-top:8px">
			<?php echo $mudi_duanluo1;?>
		</a>
		<a style="text-indent:2em;color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-left:3%;display:block;margin-top:8px">
			<?php echo $mudi_duanluo2;?>
		</a>
		<a style="text-indent:2em;color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-left:3%;display:block;margin-top:8px">
			<?php echo $mudi_duanluo3;?>
		</a>
		<a style="text-indent:2em;color:#595757;font-family:微软雅黑;font-size:14px;display:block;text-align:left;margin-left:3%;display:block;margin-top:8px">
			<?php echo $mudi_duanluo4;?>
		</a>
	
	</div>
	
	
	
	
	<?php
	//底部图片填充
	$i=1;
	$sql="SELECT * FROM `picture_xiangmu_up` WHERE difang_id='$id_difang' and type='2'";
	$query = mysql_query($sql);
	//while($row = mysql_fetch_array($query)){
	while(0){
		if($i==1){
			$Picture_paht11=$row['Picture_paht'];
			?>
			<img style="width:100%;background-color:#000000;background-repeat:repeat;background-size:cover;margin-top:15px" src="Admin/<?php echo $Picture_paht11;?>"></img>
			<?php
		}
		if($i==2){
			$Picture_paht12=$row['Picture_paht'];
			?>
			<img style="width:100%;background-color:#000000;background-repeat:repeat;background-size:cover;margin-top:15px" src="Admin/<?php echo $Picture_paht12;?>"></img>
			<?php
		}
		if($i==3){
			$Picture_paht13=$row['Picture_paht'];
			?>
			<img style="width:100%;background-color:#000000;background-repeat:repeat;background-size:cover;margin-top:15px" src="Admin/<?php echo $Picture_paht13;?>"></img>
			<?php
		}
		if($i==4){
			$Picture_paht14=$row['Picture_paht'];
			?>
			<img style="width:100%;background-color:#000000;background-repeat:repeat;background-size:cover;margin-top:15px" src="Admin/<?php echo $Picture_paht14;?>"></img>
			<?php
		}
		if($i==5){
			$Picture_paht15=$row['Picture_paht'];
			?>
			<img style="width:100%;background-color:#000000;background-repeat:repeat;background-size:cover;margin-top:15px" src="Admin/<?php echo $Picture_paht15;?>"></img>
			<?php
		}
		if($i==6){
			$Picture_paht16=$row['Picture_paht'];
			?>
			<img style="width:100%;background-color:#000000;background-repeat:repeat;background-size:cover;margin-top:15px" src="Admin/<?php echo $Picture_paht16;?>"></img>
			<?php
		}
		if($i==7){
			$Picture_paht17=$row['Picture_paht'];
			?>
			<img style="width:100%;background-color:#000000;background-repeat:repeat;background-size:cover;margin-top:15px" src="Admin/<?php echo $Picture_paht17;?>"></img>
			<?php
		}
		if($i==8){
			$Picture_paht18=$row['Picture_paht'];
			?>
			<img style="width:100%;background-color:#000000;background-repeat:repeat;background-size:cover;margin-top:15px" src="Admin/<?php echo $Picture_paht18;?>"></img>
			<?php
		}
		
		$i++;
	}
	?>
	
	<div style="clear:left;width:100%;height:60px;"></div>
	<input type="button" style="width:100%;height:50px;background-color:#ff0000;line-height:50px;color:#FFFFFF;font-family:微软雅黑;font-size:20px;border:0; position:fixed;z-index:998;bottom:0px;text-align:center;-webkit-appearance:none;" value="开始预订" onClick="lvyou_list1();"></input>
	<SCRIPT LANGUAGE="javascript"> 
	function lvyou_list1(){
		//判断用户电话号码是否绑定
		<?php 
		if(strlen($_SESSION['openid'])<4 || empty($_SESSION['user_id'])){

		$url="http://haining.365jinbi.com/lxtx/mobile/index.php?m=default&c=user&a=login";

		if($_SESSION['lv_user_act']) $url.="&lv_user_act=".$_SESSION['lv_user_act'];
		else if($_SESSION['id_difang'])$url.="&lv_user_act=".$_SESSION['id_difang'];
		
		if($_SESSION['user_id'])
		{
			$url.="&user_pid=".$_SESSION['user_id'];
		}

			//用户未绑定手机号
		?>
			alert('您尚未登录，请登录后，再行报名！');
			window.location.href="<?php echo $url;?>";
		<?php
		}else{
			//跳转到申请报名列表
		?>
		window.location.href='index_baoming.php';
		<?php
		}
		?>
	}
	</SCRIPT>
	
	<div style="max-width:640px;height:100px;background-color:#000000;opacity:0.9;position:absolute;right:0px;top:0px;display:none;position:fixed;z-index:999;text-align:left;padding:0 3% 0 0"  onclick="is_monkey_close();" id="is_monkey_BGM">
		<a style="float:left;color:#FFFFFF;font-family:微软雅黑;font-size:16px;margin-left:3%;margin-top:30px;">何为驴币？</br><a>
		<a style="float:left;color:#FFFFFF;font-family:微软雅黑;font-size:14px;margin-left:3%;">
		驴币是驴行天下平台上推行的虚拟币，旨在回报会员的一种奖励方式。</br>
		<a>
	
		<a style="float:left;color:#FFFFFF;font-family:微软雅黑;font-size:16px;margin-left:3%;margin-top:10px;">怎样获得驴币？</br><a>
		<a style="float:left;color:#FFFFFF;font-family:微软雅黑;font-size:14px;margin-left:3%;">
		1、注册会员，立即就可以获得10驴币。</br>
		2、报名参加活动就可以获得相应的驴币奖励。</br>
		3、在微信公众平台购物商场购买商品可以获得相应驴币奖励。</br>
		4、每转发一条活动信息至朋友圈奖励1驴币。（多次转发相同活动信息只计一次；朋友点击此链接报名成功后，你将会获得10元驴币的奖励）。</br>
		5、每发布一篇游记并通过审核者获得10--30驴币。（按游记的文字、照片多少而定）</br>
		6、积极参加俱乐部推出的驴币奖励计划将会获得30-100驴币。（每次活动中领队会公布驴币奖励计划）</br>
		<a>
		
		<a style="float:left;color:#FFFFFF;font-family:微软雅黑;font-size:16px;display:block;margin-top:10px;margin-left:3%;">怎样使用驴币？</br><a>
		<a style="float:left;color:#FFFFFF;font-family:微软雅黑;font-size:14px;margin-left:3%;">
		1元驴币=1元人民币，累积的驴币可以在活动中或者购物中抵扣同等金额的人民币。
		<a>
	</div>
	
</body>



























